package cn.wenhaha.app.job.service;

import cn.wenhaha.common.db.bean.SysMapping;
import org.quartz.Trigger;

/**
 * 定时任务控制服务接口
 * --------
 *
 * @author ：wyndem
 * @Date ：Created in 2022-12-09 21:42
 */
public interface JobControlService {

    /**
     * <p>
     *    关闭任务
     * </p>
     * @Author: Wyndem
     * @DateTime: 2022-12-09 21:45
     */
    boolean  close(String id,String createById);


    void testRun(SysMapping sysMapping);


    Trigger.TriggerState   state(String id, String createById);


    /**
     * <p>
     *    启动任务
     * </p>
     * @Author: Wyndem
     * @DateTime: 2022-12-09 21:45
     */
    boolean start(SysMapping sysMapping);



}
